home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-05-22 | 2.5 KB | 91 lines | [TEXT/KAHL] |
-
-
- *real short* docs for the TF Macro Tool
-
- • If you need to use a non-standard connection sequence to access
- your modem use this connection tool.
-
- • The Macro tool reads from text documents with a creator
- of 'TFMC'.
-
- • Put the tool in the same folder as TeleFinder/User before you
- open the program.
-
- • Open the "TF Macro Tool" icon to turn it on, and
- select a macro document to use.
-
- • This rev of the Macro tool does not complain if you
- give it a command it does not understand, it just skips the
- command line and procedes to the next.
-
- • To create new macro files, use TF's Text editor and save the
- file with a creator of 'TFMC' in the other field, with the
- Other button selected.
-
- The sample macro follows
-
-
- BAUD 2400; << sets the baud rate to 2400, you can set any of the rates
- that TF knows about. ( 19.2K would be BAUD 19200; )
-
- resetBd: << a label for branching ( use any word that is not a command
- followed by the colon.
-
- SLOW 4; << sets a delay of 4 ticks between chars to simulate typing
-
- * comment << use the * to enter a comment in your macro
-
- TYPE "AT^M" << Types AT ( return ) to the modem
- the ^ char turns the next character into a control char
-
- PROMPSEC 4; << set a wait time of 4 seconds for the PROMPT command
- PROMPT "OK" << look for OK to come from the modem
-
- FALSE "resetBd" << if PROMPT is false ( no OK ) branch to the resetBd label
-
- reset:
- TYPE "AT^M"
- PROMPSEC 4;
- PROMPT "OK"
- FALSE "reset"
-
- ReDial:
- TYPE "ATM1^M" << turns your modem speaker on
- PROMPT "OK"
-
- TYPE "ATDT730-5785^M" << tell the modem to dial
-
- PAUSE 2; << clear data fom the modem line for 2 secs
-
- PROMPSEC 45; << set the wait time to 45 seconds for a connection
-
- GETLINE "^M" << put the following chars into an internal buffer
- until you hit a return ( the beginning of the modem
- connection response
-
- FALSE "theEnd" << modem didn't respond, get out of here
-
-
- GETLINE "^M" << put the actual response into the buffer.
- FALSE "theEnd" << modem didn't respond, get out of here
-
- CMPLINE "CONNECT" << is CONNECT in the buffer?
- TRUE "setConnect" << yep, set the connection flag, return to TF
-
- CMPLINE "BUSY" << CONNECT not there, is BUSY?
-
- TRUE "resetBd" << yes, try again
- GOTO "theEnd" << set the cancel flag a response that we aren't
- expecting
-
- setConnect:
- CONNECT 1; << set the connect flag to 1, ( 0 is ok too )
- END << Macro finishes, back to TF
-
- theEnd:
- CANCEL << set cancel flag so the dialer won't continue
- with the password sequence.
- END
-
-
-